﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FaultDiagnosisSystem.Models.DataModels;

namespace FaultDiagnosisSystem.DAL
{
    public class TrendStableValue
    {
        internal IList<Models.DataModels.TrendStableValue> GetList(DateTime day)
        {
            using (var context=new TurbineFaultContext())
            {
                return context.TrendStableValue
                    .OrderByDescending(t => t.Id)
                    .Where(t => t.Date > day)
                    .ToList();
            }
        }
    }
}